#pragma once
#include "TTimerFreq.h"

class TTimer : public TTimerFreq
{
public:
	DWORD m_dwScheduleTime;
	DWORD m_dwStartTick;
	DWORD m_dwFPS;
	HWND  m_hWnd;	
	void Set( HWND hWnd) {m_hWnd=hWnd;}
public:
	bool   Init();
	bool   Frame();
	bool   Render();
	bool   Draw(HDC hdc,COLORREF color = RGB(0,0,0));
	bool   Release();
	bool   ScheduleTimer(DWORD dwScheduleTime);
public:
	TTimer(void);
	~TTimer(void);
};
#define I_Timer TTimer::GetInstance()